<head>
    <meta charset="UTF-8">
<title>算法提高 计算素数和</title>
<link rel="stylesheet" href="../css/main.css">
</head>
 <p>【问题描述】<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 完成一个程序，该程序计算n以内（包含n）的所有素数之和并返回。<span style="background-color: rgb(255, 0, 0);">注意，提交完整的程序代码。</span><br />
【输入格式】<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 输入一个整数 n；<br />
【输出格式】<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 输出n以前所有素数的和。<br />
【样例输入】<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5<br />
【样例输出】<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;10</p>